package com.ouc.eddyAlgorithm.service.impl;

import com.ouc.eddyAlgorithm.domain.SysShip;
import com.ouc.eddyAlgorithm.mapper.SysShipMapper;
import com.ouc.eddyAlgorithm.service.ISysShipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 舰船参数Service业务层处理
 *
 * @author yuhao
 * @date 2025-06-20
 */
@Service
public class SysShipServiceImpl implements ISysShipService {
  @Autowired
  private SysShipMapper sysShipMapper;

  /**
   * 查询舰船参数
   *
   * @param id 舰船参数主键
   * @return 舰船参数
   */
  @Override
  public SysShip selectSysShipById(Integer id) {
    return sysShipMapper.selectSysShipById(id);
  }

  /**
   * 查询舰船参数列表
   *
   * @param sysShip 舰船参数
   * @return 舰船参数
   */
  @Override
  public List<SysShip> selectSysShipList(SysShip sysShip) {
    return sysShipMapper.selectSysShipList(sysShip);
  }

  /**
   * 新增舰船参数
   *
   * @param sysShip 舰船参数
   * @return 结果
   */
  @Override
  public int insertSysShip(SysShip sysShip) {
    return sysShipMapper.insertSysShip(sysShip);
  }

  /**
   * 修改舰船参数
   *
   * @param sysShip 舰船参数
   * @return 结果
   */
  @Override
  public int updateSysShip(SysShip sysShip) {
    return sysShipMapper.updateSysShip(sysShip);
  }

  /**
   * 批量删除舰船参数
   *
   * @param ids 需要删除的舰船参数主键
   * @return 结果
   */
  @Override
  public int deleteSysShipByIds(Integer[] ids) {
    return sysShipMapper.deleteSysShipByIds(ids);
  }

  /**
   * 删除舰船参数信息
   *
   * @param id 舰船参数主键
   * @return 结果
   */
  @Override
  public int deleteSysShipById(Integer id) {
    return sysShipMapper.deleteSysShipById(id);
  }
}
